

package com.maoshi.shop.user.comment.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maoshi.shop.bean.model.UserExtension;
import com.maoshi.shop.user.comment.dto.LevelDetailDto;
import com.maoshi.shop.user.comment.dto.UserLevelDto;
import com.maoshi.shop.user.comment.model.UserLevel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 会员等级
 *
 * @author LGH
 * @date 2020-02-26 16:03:14
 */
public interface UserLevelMapper extends BaseMapper<UserLevel> {
    UserLevel selectOneAndCategory(@Param("user") UserExtension user);

    List<UserLevelDto> getList(@Param("userLevelType") Integer userLevelType);

    List<UserLevel> selectListAndCoupons(@Param("nowGrowth") Integer nowGrowth, @Param("level") Integer level);

    UserLevel selectLevelAndCoupons(@Param("level") Integer level);
    List<LevelDetailDto> selectLevelAndRights(@Param("levelType") Integer levelType);

    void setStatusByLevelType();
}
